package com.qijian.maindata.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 产品属性单位对象 bi_product_attribute_unit
 *
 * @author ruoyi
 * @date 2021-08-18
 */
@Data
@ToString
@TableName("bi_product_attribute_unit")
public class ProductAttributeUnit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 单位编码
     */
    @Excel(name = "单位编码")
    private String code;

    /**
     * 单位名称
     */
    @Excel(name = "单位名称")
    private String name;

    /**
     * 单位类型
     */
    @Excel(name = "单位类型")
    private String type;

    /**
     * 单位简称
     */
    @Excel(name = "单位简称")
    private String simplifyName;

    /**
     * 转换单位
     */
    @Excel(name = "转换单位")
    private Long conversionAttr;

    /**
     * 转换比例
     */
    @Excel(name = "转换比例")
    private String conversionRatio;

}
